<template>
 <div class="recommend">
   <div class="recommend-item" v-for="(item , index) in crecommends" :key=index>
     <a :href="item.link">
       <img :src="item.image" alt="">
       <span>{{item.title}}</span>
     </a>
   </div>
 </div>
</template>

<script>
export default {
  name: "HomeRecommendView",
  props: {
    crecommends:{
      type:Array,
      default(){
        return {}
      }
    }
  }
}
</script>

<style scoped>
.recommend {
  display: flex;
  margin-top: 10px;
  font-size: 14px;
  padding-bottom: 30px;
  border-bottom: 10px solid #eee;
}

.recommend-item {
  flex: 1;
  text-align: center;
}

.recommend img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
</style>